package com.helloaps.scheduling.domain;

import ai.timefold.solver.core.api.domain.lookup.PlanningId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Calendar {
    @PlanningId
    private String id;
    private LocalDateTime date;
    private String type;

    public enum Type
    {
        WORKING("0"), PUBLIC_HOLIDAY("1"), WEEKEND("2");

        private final String value;

        Type(String value)
        {
            this.value = value;
        }

        public String value()
        {
            return this.value;
        }
    }
}
